package com.example.libraryapp.fragment;

import android.content.Context;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.example.libraryapp.R;

/**
 * Fragment
 */
public class FiveFragment extends Fragment {
	
	private static Handler handler;
	private Context context;
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		init();
	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		if(container == null){
			return null;
		}
		View view = inflater.inflate(R.layout.five_fragment, container,false);
		return view;
	}

	/**
	 * ��ʼ��
	 */
	private void init() {
		// TODO Auto-generated method stub
		context = getActivity();
		
		handler = new Handler(){

			@Override
			public void handleMessage(Message msg) {
				// TODO Auto-generated method stub
				super.handleMessage(msg);
				switch (msg.what) {

				default:
					break;
				}
			}
			
		};
	}
	
}
